//Copyright (C) 2009 Ron Coleman. Contact: ronncoleman@gmail.com
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either
//version 3 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this library; if not, write to the Free Software
//Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

package org.workplicity.marist.grounds;

import org.workplicity.entry.WorkRequest;

/**
 *
 * @author Ron Coleman
 */
public class GroundsRequest extends WorkRequest {
    public enum Priority { NA, ROUTINE, URGENT };

    protected String location = "";
    protected String damageCause = "";
    protected boolean signed = false;
    protected String signedBy = "";
    protected String approvedBy = "";
    protected String requestedBy = "";
    protected double estHours = 0.0;
    protected double actHours = 0.0;
    protected String chargeTo = "";
    protected Priority priority = Priority.NA;
    protected String reason = "";
    protected String materials = "";

    /**
     * Constructor
     */
    public GroundsRequest() {

    }

    /**
     * Get the value of materials
     *
     * @return the value of materials
     */
    public String getMaterials() {
        return materials;
    }

    /**
     * Set the value of materials
     *
     * @param materials new value of materials
     */
    public void setMaterials(String materials) {
        this.materials = materials;
    }


    /**
     * Get the value of reason
     *
     * @return the value of reason
     */
    public String getReason() {
        return reason;
    }

    /**
     * Set the value of reason
     *
     * @param reason new value of reason
     */
    public void setReason(String reason) {
        this.reason = reason;
    }


    /**
     * Get the value of priority
     *
     * @return the value of priority
     */
    public Priority getPriority() {
        return priority;
    }

    /**
     * Set the value of priority
     *
     * @param priority new value of priority
     */
    public void setPriority(Priority priority) {
        this.priority = priority;
    }


    /**
     * Get the value of chargeTo
     *
     * @return the value of chargeTo
     */
    public String getChargeTo() {
        return chargeTo;
    }

    /**
     * Set the value of chargeTo
     *
     * @param chargeTo new value of chargeTo
     */
    public void setChargeTo(String chargeTo) {
        this.chargeTo = chargeTo;
    }


    /**
     * Get the value of estHours
     *
     * @return the value of estHours
     */
    public double getEstHours() {
        return estHours;
    }

    /**
     * Set the value of estHours
     *
     * @param estHours new value of estHours
     */
    public void setEstHours(double estHours) {
        this.estHours = estHours;
    }

    /**
     * Get the value of requestedBy
     *
     * @return the value of requestedBy
     */
    public String getRequestedBy() {
        return requestedBy;
    }

    /**
     * Set the value of requestedBy
     *
     * @param requestedBy new value of requestedBy
     */
    public void setRequestedBy(String requestedBy) {
        this.requestedBy = requestedBy;
    }

    /**
     * Get the value of approvedBy
     *
     * @return the value of approvedBy
     */
    public String getApprovedBy() {
        return approvedBy;
    }

    /**
     * Set the value of approvedBy
     *
     * @param approvedBy new value of approvedBy
     */
    public void setApprovedBy(String approvedBy) {
        this.approvedBy = approvedBy;
    }

    /**
     * Get the value of signedBy
     *
     * @return the value of signedBy
     */
    public String getSignedBy() {
        return signedBy;
    }

    /**
     * Set the value of signedBy
     *
     * @param signedBy new value of signedBy
     */
    public void setSignedBy(String signedBy) {
        this.signedBy = signedBy;
    }

    /**
     * Get the value of signed
     *
     * @return the value of signed
     */
    public boolean isSigned() {
        return signed;
    }

    /**
     * Set the value of signed
     *
     * @param signed new value of signed
     */
    public void setSigned(boolean signed) {
        this.signed = signed;
    }

    /**
     * Get the value of damageCause
     *
     * @return the value of damageCause
     */
    public String getDamageCause() {
        return damageCause;
    }

    /**
     * Set the value of damageCause
     *
     * @param damageCause new value of damageCause
     */
    public void setDamageCause(String damageCause) {
        this.damageCause = damageCause;
    }

    /**
     * Get the value of location
     *
     * @return the value of location
     */
    public String getLocation() {
        return location;
    }

    /**
     * Set the value of location
     *
     * @param location new value of location
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * Get the value of actHours
     *
     * @return the value of actHours
     */
    public double getActHours() {
        return actHours;
    }

    /**
     * Set the value of actHours
     *
     * @param actHours new value of actHours
     */
    public void setActHours(double actHrs) {
        this.actHours = actHrs;
    }
}
